//
//  ZMTableView.swift
//  YHCT
//
//  Created by Rowling on 2020/10/10.
//  Copyright © 2020 智蚂优服. All rights reserved.
//

import UIKit

class ZMTableView: UITableView {
    
    var scrollIcantSccroll: UIScrollView?
    
    func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
        if otherGestureRecognizer == scrollIcantSccroll?.panGestureRecognizer {
            return false
        }
        return gestureRecognizer.isKind(of: UIPanGestureRecognizer.classForCoder()) && otherGestureRecognizer.isKind(of: UIPanGestureRecognizer.classForCoder())
    }

}
